package com.wangjialu.learner.consumer.service;

import com.wangjialu.learner.payment.entities.Payment;
import com.wangjialu.learner.payment.vo.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * <p></p>
 *
 * @author WangJialu
 * @since 2021/6/23 16:18
 */
@Component
@FeignClient(value="CLOUD-PAYMENT-SERVICE")
public interface PaymentFeignService {

    @GetMapping("/payment/getById/{id}")
    CommonResult<Payment> getById(@PathVariable("id")Long id);
}
